home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 007 / battutor.arc / _WHAT.BAT < prev    next >
Encoding:
DOS Batch File  |  1986-05-05  |  1.6 KB  |  45 lines

  1. echo off
  2. .                               _what.bat       revised 19-aug-83 17:41
  3. more <_what.rem
  4. pause
  5. :example
  6. slash/ll/I'm going to count your physical diskette drives using WHAT FLOPPIES.
  7. slash/l /Note that "legitimate" IBM hard disks won't be in this count, nor
  8. slash/  /will virtual drives that are "patched" into DOS.  You would
  9. slash/  /use the WHAT DRIVES command to count diskette drives, hard disks,etc.
  10. slash/l /               Wait a moment ...
  11. what floppies
  12. if errorlevel 4 goto 4disks
  13. if errorlevel 3 goto 3disks
  14. if errorlevel 2 goto 2disks
  15. if errorlevel 1 goto 1disks
  16. slash/l/No floppies???  You're either patched or pulling my leg!
  17. goto continue
  18. :1disks
  19. slash/1/One floppy.  Hmm.  Either one of the last of a dying breed,
  20. slash/ /or perhaps there is a hard disk next door ...
  21. goto continue
  22. :2disks
  23. slash/l/Two floppies are the mark of a mainstream user.
  24. slash/l/Have you considered a RAM disk?  Think about it ...
  25. slash/l/(Don't type y/n.  You're probably answering EVERYTHING
  26. slash/ / y/n by now ! )
  27. goto continue
  28. :3disks
  29. slash/l/Three floppies! Is one a RAM disk, or (gasp!) a winnie?
  30. slash/l/(Don't type y/n.  You're probably answering EVERYTHING
  31. slash/ / y/n by now ! )
  32. goto continue
  33. :4disks
  34. slash/l/Four floppies!! A heavy duty user, for sure. Or else
  35. slash/l/you're just fooling with the switches ...
  36. :continue
  37. query/lll/              Want to run this example again (y/n) ?
  38. if errorlevel 2 goto exit
  39. if errorlevel 1 goto example
  40. _find
  41. :exit
  42. slash/lll/              Bye bye
  43.   We can also use echo subcommand for comments, but with echo "on" it
  44. echo    can certainly get confusing
  45. echo    confusing .